//
//  DetailView.m
//  08-UITableView-Contact
//
//  Created by LL.F on 16/7/25.
//  Copyright © 2016年 LL.F. All rights reserved.
//

#import "DetailView.h"

@interface DetailView ()
@property (nonatomic, strong) UILabel *leftLabel;
@property (nonatomic, strong) UILabel *rightLabel;
@end

@implementation DetailView
- (instancetype)initWithFrame:(CGRect)frame
{

    self = [super initWithFrame:frame];
    if (self) {
        
        self.leftLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, frame.size.width / 3, frame.size.height)];
        //_leftLabel.backgroundColor = [UIColor redColor];
        _leftLabel.textAlignment = 1;
        [self addSubview:_leftLabel];
        
        self.rightLabel = [[UILabel alloc] initWithFrame:CGRectMake(_leftLabel.frame.origin.x + _leftLabel.frame.size.width, _leftLabel.frame.origin.y, frame.size.width - _leftLabel.frame.size.width, _leftLabel.frame.size.height)];
        //_rightLabel.backgroundColor = [UIColor blueColor];
        [self addSubview:_rightLabel];
    }
    return self;
}

@end
